package com.crm.service.role;

import com.crm.pojo.Right;
import com.crm.pojo.Role;

import java.util.List;

public interface RoleService {
    /**
     * 获取所有的角色
     * @return 返回一个集合
     * @throws Exception
     */
    public List<Role> findAllRole() throws Exception;

    //权限查询
    public List<Right> findAllRights() throws Exception;//获取所有的权限
    public List<Right> findRightsByRole(Role role) throws Exception;
}